/*
 * ReturnExpressionAst.h
 *
 *  Created on: 8 Nov 2010
 *      Author: kn308
 */

#ifndef RETURNEXPRESSIONAST_H_
#define RETURNEXPRESSIONAST_H_

#include <MAlice/Ast/ExpressionAst.h>

namespace MAlice
{

class ReturnExpressionAst: public MAlice::ExpressionAst
{
private:
	ExpressionAst* mExpression;
public:
	ReturnExpressionAst(location loc, ExpressionAst* expression);
	virtual ~ReturnExpressionAst();
	virtual llvm::Value* generate();
	inline ExpressionAst* getExpression() { return mExpression; }
};

}

#endif /* RETURNEXPRESSIONAST_H_ */
